package com.mnnu.pojo;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private Integer code;
    private String msg;
    private Object data;

    public static Result success() {
        return new Result(1, "success", null);
    }

    public static Result success(Object obj) {
        return new Result(1, "success", obj);
    }

    public static Result error(String str) {
        return new Result(0, str, null);
    }
}
